package com.example.education.service.impl;

public class QS {
    //根据传来的平均分和绩点查询相应能考上的QS排名学校
    public double selectByScore(Double score) {

        double QS;
        if (score >= 90) {
            QS = 50;
        } else if (score >= 80) {
            QS = 80;
        } else if (score >= 70) {
            QS = 150;
        } else if (score >= 60) {
            QS = 250;
        } else if (score >= 50) {
            QS = 350;
        } else {
            QS = 500;
        }
        return QS;
    }
}
